home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-08-29 | 777 b | 40 lines |
- #
- # examples makefile
- #
- FEXAMPS = ftrivial fsimple fshapes fpoly fviews fcirctxt fmoretxt fcurves \
- fmoretx2 fpatches fballs fobjvws fworld floc ftetra fcube \
- flcube fsinwave
-
- FOBJS = ftrivial.o fsimple.o fshapes.o fpoly.o fviews.o fcirctxt.o fmoretxt.o \
- fmoretx2.o fcurves.o fpatches.o fballs.o fobjvws.o fworld.o floc.o \
- ftetra.o fcube.o flcube.o fsinwave.o
-
- #
- # Where to find library
- LIB = ../hershey/src/libhershey.a ../src/libvogl.a
- LIBS = -lX11
- #
-
- .SUFFIXES: .F .o
-
- F77 = xlf
-
- MFFLAGS =
- FFLAGS = $(MFFLAGS) -I../src
- CPPFLAGS = -P -I../src
-
- .F.o:
- /lib/cpp $(CPPFLAGS) $*.F > $*.f
- $(F77) -c $(FFLAGS) $*.f
-
- all: $(FEXAMPS)
-
- $(FEXAMPS): $(FOBJS) $(LIB)
- $(F77) $(FFLAGS) -o $@ $@.o $(LIB) $(LIBS)
-
- clean:
- rm -f *.o core
-
- clobber:
- rm -f $(FEXAMPS) *.o core
-